sort

Sorts a file or input for displaying.
   sort [d:][path]file [options]
   command | sort [options]
The file for input is not modified.

Options

  /R
  Sort in reverse order.

  /+n
  Begin sorting at column n in each line of text.  Default=1.

Examples

1. Displays the current directory in alphabetical order:
       dir |sort
2. Sorts a file and writes it to another file:
       sort unordered.txt > ordered.txt

Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying.txt for copying conditions.